package com.ckr.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @author Shadowckr
 * @create 2022-01-19 22:02
 */

/*
逻辑理解 ：应用启动起来，dubbo就会扫描指定的包下带有@component注解的服务，将它发布在指定的注册中心中！
 */

@Service//将服务发布出去
@Component//放在容器中
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket() {
        return "盖牌认输永远不在选择之列！";
    }
}
